﻿using System;
using System.Collections.Generic;
using System.Xml.Serialization;

namespace ESB.YWXT
{
	/// <summary>
	/// 消费记录主表
	/// </summary>
	[Serializable]
	public partial class YW_xfjlzb
	{
        private List<YW_xfjlmxb> _mxb;
		public YW_xfjlzb()
		{}
		#region Model
		private Guid _ywid;
		private Guid _zbid;
		private string _xfdh;
		private string _xflx;
		private string _empi;
		private string _ksid;
		private string _ysid;
		private string _yzid;
		private DateTime? _xfsj;
		private string _kh;
		private DateTime? _addtime= DateTime.Now;
		/// <summary>
		/// 
		/// </summary>
		public Guid ywid
		{
			set{ _ywid=value;}
			get{return _ywid;}
		}
		/// <summary>
		/// 主表ID
		/// </summary>
		public Guid zbid
		{
			set{ _zbid=value;}
			get{return _zbid;}
		}
		/// <summary>
		/// 消费单号
		/// </summary>
		public string xfdh
		{
			set{ _xfdh=value;}
			get{return _xfdh;}
		}
		/// <summary>
		/// 消费类型
		/// </summary>
		public string xflx
		{
			set{ _xflx=value;}
			get{return _xflx;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string EMPI
		{
			set{ _empi=value;}
			get{return _empi;}
		}
		/// <summary>
		/// 科室ID
		/// </summary>
		public string ksid
		{
			set{ _ksid=value;}
			get{return _ksid;}
		}
		/// <summary>
		/// 医生ID
		/// </summary>
		public string ysid
		{
			set{ _ysid=value;}
			get{return _ysid;}
		}
		/// <summary>
		/// 驿站ID
		/// </summary>
		public string yzid
		{
			set{ _yzid=value;}
			get{return _yzid;}
		}
		/// <summary>
		/// 消费时间
		/// </summary>
		public DateTime? xfsj
		{
			set{ _xfsj=value;}
			get{return _xfsj;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string kh
		{
			set{ _kh=value;}
			get{return _kh;}
		}
		/// <summary>
		/// 
		/// </summary>
		public DateTime? addtime
		{
			set{ _addtime=value;}
			get{return _addtime;}
		}
		#endregion Model


        [XmlArrayItem("rows")]
        [XmlArray("params")]
        public List<YW_xfjlmxb> Mxb
        {
            get { return _mxb; }
            set { _mxb = value; }
        }
    }
}

